# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=xload
pkgver=1.1.4
pkgrel=0
pkgdesc="System load average display for X"
url="https://xorg.freedesktop.org"
arch="all"
license="MIT"
makedepends="libx11-dev libxaw-dev libxmu-dev libxt-dev gettext-dev"
subpackages="$pkgname-doc"
source="https://www.x.org/archive/individual/app/xload-$pkgver.tar.xz"

build() {
	export CFLAGS="$CFLAGS -DRLOADSTUB"
	export LIBS="$LIBS -lintl"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-nls
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
114babe4e5a60f4713f9e4627ee0a1bbb2f1f238cb46f24c38aecff67f25e6b0f58cbd554c71095ddc2b01398adbfa379550a34c23c413db52157648028554f2  xload-1.1.4.tar.xz
"
